<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>获取所的有文章信息</title>
	</head>

	<body>
		<script src="vendor/jquery.min.js"></script>
		<script>
			/*
			$.get('http://192.168.13.194/blog/listArticle', {
				date: new Date().getTime()
			}, function(data) {
				// test.html:1 XMLHttpRequest cannot load http://192.168.13.194/blog/listArticle?date=1489998351853. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://127.0.0.1:8020' is therefore not allowed access.
				console.info(data)
			}, 'json');
			*/
			
			$.getJSON('http://192.168.13.194/blog/listArticle', {
				date: new Date().getTime()
			}, function(data) {
				// test.html:1 XMLHttpRequest cannot load http://192.168.13.194/blog/listArticle?date=1489998351853. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://127.0.0.1:8020' is therefore not allowed access.
				console.info(data)
			});
			
			/*
			$.ajax({
			   type: "GET",
			   cache: false,
			   url: "http://192.168.13.194/blog/listArticle",
			   data: {},
			   // 添加了此参数过后，就会在地址上添加一个callback的参数
			   dataType: 'JSONP',
			   jsonpCallback: 'jsonp',
			   success: function(data){
			   	 console.info(data)
			   }
			});
			*/
		</script>
	</body>

</html>